package com.msc.app;


import java.awt.*;
import java.awt.event.*;

/**
 * @author      Firstname Lastname <yasithucsc@gmail.com>
 * @version     1.6 (The Java version used)
 */
public class App {

   /**
    * UI entry point.
    *
    * @param  args
    * @return void.
    */
	public static void main(String[] args) {
		Frame frm=new Frame("DataEntry frame");
		Label lbl = new Label();
		frm.add(lbl);
		frm.setSize(350,300);
		frm.setVisible(true);
		frm.addWindowListener(new WindowAdapter(){
			public void windowClosing(WindowEvent e){
				System.exit(0);
			}
		});
        Panel p = new Panel();
		Panel p1 = new Panel();

	        Label jFirstName = new Label("First Name");
		TextField lFirstName = new TextField(20);
		Label jLastName =new Label("Last Name");
		TextField lLastName=new TextField(20);
		Label jDateofBirth = new Label("Date of Birth");
                TextField lDateofBirth = new TextField(20);
                Label jGender = new Label("Gender");
                TextField lGender = new TextField(20);
		Label jCity = new Label("City");
                TextField lCity = new TextField(20);
		Label jSympton = new Label("Symptom");
                TextField lSympton = new TextField(20);


		p.setLayout(new GridLayout(7,1));
		p.add(jFirstName);
   		p.add(lFirstName);
		p.add(jLastName);
		p.add(lLastName);
		p.add(jDateofBirth);
		p.add(lDateofBirth);
p.add(jGender);
p.add(lGender);
p.add(jCity);
p.add(lCity);
p.add(jSympton);
p.add(lSympton);

		Button Submit=new Button("Submit");
		p.add(Submit);
		p1.add(p);
		frm.add(p1,BorderLayout.NORTH);
	}
}
